GXX = g++
TARGETLIB = ./libMyThread.so
TARGET = t
DEBUG = 
all:
	$(GXX) $(DEBUG) -c -fPIC QThread.cpp
	$(GXX) $(DEBUG) -c -fPIC MyThread.cpp
	$(GXX) $(DEBUG) -c -fPIC main.cpp
	$(GXX) $(DEBUG) -shared -fPIC -o $(TARGETLIB) MyThread.o QThread.o -s -lpthread
	$(GXX) -o $(TARGET) main.o $(TARGETLIB) 
.PHONY:clean
clean:
	-rm -f *.o $(TARGET) $(TARGETLIB)
